import Toast from 'react-native-root-toast'

/**
 * toast提示
 * @param msg toast的内容
 * @param duration toast展示的时长
 */
function showToast (msg = '', duration = 3000) {
  Toast.show(msg, { duration: duration })
}

export { showToast }